<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo app()->name.t('Title','adm') ?></title>
<meta name="keywords" content="<?php echo app()->name.t('Title','adm') ?>" />
<meta name="description" content="<?php echo app()->name.t('Title','adm') ?>">
<link href="<?php echo Yii::app()->homeUrl; ?>/css/manage_style/style_manage.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->homeUrl; ?>/css/form.css" />
<!--[if ie 6]>
<link rel="stylesheet" href="<?php echo Yii::app()->homeUrl; ?>/css/manage_style/ie6.css">
<![endif]-->
<?php cs()->registerCoreScript('jquery') ?>
<script type="text/javascript" src="<?php echo Yii::app()->homeUrl; ?>/js/common.js"></script><!-- 弹框控件 -->
<link href="<?php echo Yii::app()->homeUrl; ?>/js/artdialog/skins/default.css" rel="stylesheet" />
<script src="<?php echo Yii::app()->homeUrl; ?>/js/artdialog/artDialog.min.js"></script>
<script src="<?php echo Yii::app()->homeUrl; ?>/js/jquery-ui-1.9.2.custom.js"></script>
<script src="<?php echo Yii::app()->homeUrl; ?>/js/art_show.js"></script>

</head>

<body>
<!--头部start-->
<div class="header w_1000 o_a">
	<div class="header_left f_l">
		<h1 class="logo f_l">
			<?php echo l(CHtml::image(F::setting('sitelogo'),app()->name),app()->homeUrl,array('title'=>app()->name,'target'=>'_blank'))?>
		</h1>
        <p class="welcome f_l"><?php echo t('Welcome {username}','adm',array('{username}'=>user()->getName()));?></p>
    </div>
    <div class="header_right f_r">
    	<ul class="c_f">
        	<li class="man_bg"><?php echo CHtml::link('<b class="man_bg ico_manage"></b>修改密码','/manage/adminer/resetPassword')?></li>
        	<li class="man_bg"><?php echo CHtml::link('<b class="man_bg ico_exit"></b>安全退出','/manage/adminer/logout')?></li>
        </ul>
    </div>
</div>
<!--头部end-->
<div class="hr_05"></div>
<!--导航start-->
<div class="w_1000 o_a">
	<div class="manage_nav man_bg">
        <div class="nav_r man_bg"></div>
            <?php 
				$this->widget('zii.widgets.CMenu', array(
					'items'=>AdmMenu::model()->getleve1Menu(),
					'htmlOptions'=>array('class'=>'c_f'),
					'itemCssClass'=>'item',
					'activeCssClass'=>'cur item',
				));
			?>
        
    </div>
</div>
<!--导航end-->
<div class="w_1000 o_a">
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
			'htmlOptions'=>array('class'=>"manage_position ff_s c_666 man_bg"),
		)); ?><!-- breadcrumbs -->
	<?php endif?>
</div>
<div class="w_1000 o_a manage">
	<div class="col_sub f_l">
    	<div class="" id="subList">
        	<ul class="list">
	            <?php foreach(AdmMenu::model()->getleve2Menu() as $itemMenu ){
	            	$this->beginWidget('zii.widgets.CPortlet', array(
	            		'title'=>$itemMenu['title'],
						'titleCssClass'=>"man_bg",
						'contentCssClass'=>'list',
						'decorationCssClass'=>'list',
						'htmlOptions'=>array('class'=>'sub_list f_l'),
	            	));
					if(isset($itemMenu['items'])){
						$this->widget('zii.widgets.CMenu', array(
							'items'=>$itemMenu['items'],
							'htmlOptions'=>array('class'=>'operations'),
							'itemCssClass'=>'item',
							'activeCssClass'=>'cur item',
						));
					}
					$this->endWidget();
				}?>
            </ul>
        </div>
    </div>
    <div class="col_main f_r">
    	<div class="manage_box">
			<?php echo $content; ?>
		</div>
	 <div class="hr_30"></div>
    </div>
</div>
<div class="w_1000 o_a">
	<div class="manage_foot man_bg"><p class="t_c c_666">&copy; Copyright 2003-2011 深圳市指易达电子商务有限公司 粤ICP备10225501号-1 </p></div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("input.t_ipt").focus(function(){
		$(this).addClass("focus")
		});
	$("input.t_ipt").blur(function(){
		$(this).removeClass("focus")
		});	
	});
</script>
</body>
</html>
